define(()=>{
    return function(goods, res, tbody){
        let str = "";
        res.forEach(val1=>{
            goods.forEach(val2=>{
                if(val1.proId === val2.id){
                    str += ` <tr index="${val2.id}">
                    <td><input type="checkbox" ></td>
                    <td>
                        <div class="gwxqt">
                            <img src="${val1.img}" alt="" id="hh">
                            <span class="gwt">${val1.proName}</span>
                        </div>
                    </td>
                        <td>￥ ${val1.price}</td>
                        <td><div type="number" class="setNum1" >
                        <button type="number" class="setNum2" >-</button>
                       <input type="number" class="setNum" value="${val2.num}">
                        <button type="number" class="setNum3" >+</button>
                    </div></td>
                    
                    <td>${val2.num * val1.price}</td>
                    <td class="del">删除</td>
                </tr>`
                }
            })
        })
        tbody.html(str);
    }
})
